package cts.db;

import java.util.HashSet;
import java.util.Set;

/**
 * Question entity. @author MyEclipse Persistence Tools
 */

public class Question implements java.io.Serializable {

	// Fields

	private Integer QId;
	private Exam exam;
	private Integer QType;
	private String QContent;
	private Integer QScore;
	private String QAnswer;
	private Set stuAnswers = new HashSet(0);
	private Set QOptions = new HashSet(0);

	// Constructors

	/** default constructor */
	public Question() {
	}

	/** minimal constructor */
	public Question(Exam exam, Integer QType, String QContent, Integer QScore) {
		this.exam = exam;
		this.QType = QType;
		this.QContent = QContent;
		this.QScore = QScore;
	}

	/** full constructor */
	public Question(Exam exam, Integer QType, String QContent, Integer QScore,
			String QAnswer, Set stuAnswers, Set QOptions) {
		this.exam = exam;
		this.QType = QType;
		this.QContent = QContent;
		this.QScore = QScore;
		this.QAnswer = QAnswer;
		this.stuAnswers = stuAnswers;
		this.QOptions = QOptions;
	}

	// Property accessors

	public Integer getQId() {
		return this.QId;
	}

	public void setQId(Integer QId) {
		this.QId = QId;
	}

	public Exam getExam() {
		return this.exam;
	}

	public void setExam(Exam exam) {
		this.exam = exam;
	}

	public Integer getQType() {
		return this.QType;
	}

	public void setQType(Integer QType) {
		this.QType = QType;
	}

	public String getQContent() {
		return this.QContent;
	}

	public void setQContent(String QContent) {
		this.QContent = QContent;
	}

	public Integer getQScore() {
		return this.QScore;
	}

	public void setQScore(Integer QScore) {
		this.QScore = QScore;
	}

	public String getQAnswer() {
		return this.QAnswer;
	}

	public void setQAnswer(String QAnswer) {
		this.QAnswer = QAnswer;
	}

	public Set getStuAnswers() {
		return this.stuAnswers;
	}

	public void setStuAnswers(Set stuAnswers) {
		this.stuAnswers = stuAnswers;
	}

	public Set getQOptions() {
		return this.QOptions;
	}

	public void setQOptions(Set QOptions) {
		this.QOptions = QOptions;
	}

}